package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_department")
public class Department implements Serializable {
    @TableId(value = "dept_id" ,type = IdType.AUTO)
    private Integer deptId;
    @TableField
    private String deptName;


    private String deptDesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deptCreateDate;
}
